import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import Index from '@/components/Index'
import DepartmentManager from '@/components/DepartmentManager'
import PowerManager from '@/components/PowerManager'
import RoleManager from '@/components/RoleManager'
import UserManager from '@/components/UserManager'
import CourseTypeManager from '@/components/CourseTypeManager'
import CourseGuigeManager from '@/components/CourseGuigeManager'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Login
    },{
      path: '/Index',
      component: Index,
      children: [
        {
          path: '/DepartmentManager',
          component: DepartmentManager
        },
        {
          path: '/PowerManager',
          component: PowerManager
        },
        {
          path: '/RoleManager',
          component: RoleManager
        },
        {
          path: '/UserManager',
          component: UserManager
        },
        {
          path: '/CourseTypeManager',
          component: CourseTypeManager
        },
        {
          path: '/CourseGuigeManager',
          component: CourseGuigeManager
        }
      ]
    }
  ]
})
